package types

import (
	"context"
	"log"
	"log/slog"
	"net/http"
	"time"
)

type APP struct {
	// TlsCert string
	// TlsKey  string
	Ctx         context.Context
	Port        int
	Server      string
	RemoteURL   string
	Duration    time.Duration
	Debug       bool
	Logger      *log.Logger
	Slogger     *slog.Logger
	DmiPath     string
	ProcPath    string
	IPMIDevPath string
	SysRoot     *string
	SysPath     string
}

type Response struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data"`
}

type CronService interface {
	Get() (string, error)
	ServeHTTP(w http.ResponseWriter, r *http.Request)
}

// type Collector interface {
// 	Collect() error
// 	UpdateStruct(path string) error
// }
